package cn.edu.guet.service.badge.impl;

import cn.edu.guet.bean.editor.Badge;
import cn.edu.guet.mapper.badge.BadgeMapper;
import cn.edu.guet.service.badge.IBadgeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class badgeServiceImpl implements IBadgeService {
    @Autowired
    private BadgeMapper badgeMapper;

    @Override
    public void addBadge(Badge badge) {
        badgeMapper.addBadge(badge);
    }

    @Override
    public List<Badge> getAllBadge() {
        return badgeMapper.getAllBadge();
    }

    @Override
    public void updateBadge(Badge badge) {
        badgeMapper.updateBadge(badge);
   }

    @Override
    public void deleteBadge(int bid) {
        badgeMapper.deleteBadge(bid);
    }
}
